#ifndef __PAGE_LIB_H__
#define __PAGE_LIB__

#include <vector>
#include <string>
#include <map>

#include "DirScanner.h"
#include "FileProcessor.h"
#include "client/Configuration.h"

using std::vector;
using std::string;
using std::map;
using std::pair;

class PageLib{
public:
    PageLib(Configuration &conf, DirScanner &dirScanner, FileProcessor &fileProcessor);
    void create();
    void store();

private:
    DirScanner &_dirScanner;
    FileProcessor _fileProcessor;
    vector<string> _pages;
    map<int, pair<int, int>> _offsetLib;
};

#endif